const JWT = require('jsonwebtoken');

const SECRET = '8677df7fc3a34e26a61c034d5ec8245d';
const JAVA_JWT = 'eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIxIiwic3ViIjoi5bCP5piOIiwiaXNzIjoi55Ge6ZuqIiwiaWF0IjoxNTQwNDQ4ODc1LCJleHAiOjE1NDA0NDg5MDV9.1Gr09RSNYo-3cHfblqd4eU4iBamnYKc2EMMK5NAERJYUocikeHIIsuPY6exkh5ABtTcbqAFlhK-IWx6CqhFXbA';

console.log(JWT.verify(JAVA_JWT, new Buffer(SECRET, 'base64'), { algorithms: ['HS512'] }))
